__all__ = ['log']
import os
import logging


# 获取自定义格式的 logger
def log():
    logging.basicConfig(level=logging.INFO,
                        filename="application.log",
                        format=f"%(asctime)s *%(levelname)s* {os.getpid()} : %(message)s",
                        datefmt='%Y-%m-%d %H:%M:%S')
    return logging
